package com.yuchen.ishop.service.admin.sys.impl;

import com.yuchen.core.jdbc.BaseDao;
import com.yuchen.ishop.entity.Menu;
import com.yuchen.ishop.service.admin.sys.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 *
 */
@Service
@Transactional
public class MenuServiceImpl implements MenuService {

    @Autowired
    private BaseDao dao;

    @Override
    public List find() {
        return dao.query(Menu.class,null);
    }
}
